#!/bin/bash

set -x

mds_id='a'
mds_name="mds.${mds_id}"
mds_data="/data/${mds_name}"

mkdir -p ${mds_data}
bin/ceph auth get-or-create ${mds_name} mon 'allow *' mgr 'allow *' osd 'allow *' mds 'allow *' -o ${mds_data}/keyring
bin/ceph-mds --cluster ceph -i ${mds_id} -m 192.168.2.246:6789

